package java69.work720;

public class Teacher {
    protected String name;
    protected String sex;
    protected int age;
    protected int years;
    protected String adress;

    public Teacher() {
    }

    public Teacher(String name, String sex, int age, int years, String adress) {
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.years = years;
        this.adress = adress;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getYears() {
        return years;
    }

    public void setYears(int years) {
        this.years = years;
    }

    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }

    protected void showSelf(){
        System.out.println("我叫"+getName()+"，今年"+getAge()+"岁，在"+getAdress()+"任教"+getYears()+"年，"+getSex());
    }
    protected void teaching(String program){
        System.out.println("打开"+program+",实施理论课授课");
    }


}
